<div id="top_container"> 
	<!-- home-position1 Start -->
	<div id="home-position1">
		<div style="float:left; margin-right:2px; width:480px">
			<div id="braygames_slider" style="height: 283px; width: 370px;">
				<ul class="bjqs">
				<?php if(isset($games_slider)&& $games_slider){
					foreach($games_slider as $game)
				{ 
				?>
					<li>
						<a href="<?php echo game_url($game->game_id,$game->game_code);?>"><span style="background-image: url(<?php echo image_thumbnail($game->game_thumb_large,'large');?>);background-repeat:no-repeat; background-position: center;" class="braygames_slider_right"> </span></a>
					</li>
					<?php } }?>
				 
				</ul>
			</div>
			<div class="rightthumb">
				<ul>
				<?php if(isset($games_slider)&& $games_slider){
					$i = 1; 
					foreach($games_slider as $game)
				{ 
				?>
					<li>
						<a href="<?php echo game_url($game->game_id,$game->game_code);?>" data-action="showtip">
							<div class="tip_content">
								<div class='tooltip'><div class='tooltip-center'><div class='left'><img src='<?php echo image_thumbnail($game->game_thumb,'medium'); ?>' width='120' height='95' /></div><div class='right'><p class='title'><?php echo $game->game_title ?></p>
									<?php if (isset($cate->cat_name)) echo '<p>Thể loại: <span>'.$cate->cat_name.'</span></p>'; ?>
									<p>Lượt chơi: <?php echo $game->game_view; ?></p>
								<p><?php echo $game->game_content; ?></p></div></div></div>
							</div>
							<img width="72" height="60" src="<?php echo image_thumbnail($game->game_thumb,'thumbnail');?>" class="attachment-72x60 wp-post-image" alt="<?php echo $game->seo_title;?>">
							<span class="title"><?php echo $game->game_title;?></span>
						</a>

					</li>
					<?php 
					$i++; if($i>3) break;
					} }?>
				</ul>
			</div>
		</div>


		<div class="home-sidebar">
			<div class="display_games">
				<div class="postlist">
					<ul>
					<?php
					if(isset($games_hot)&& $games_hot){
					foreach($games_hot as $game)
				{ 
				?>
						<li> <a href="<?php echo game_url($game->game_id,$game->game_code);?>" data-action="showtip"> 
							<div class="tip_content">
								<div class='tooltip'><div class='tooltip-center'><div class='left'><img src='<?php echo image_thumbnail($game->game_thumb,'medium'); ?>' width='120' height='95' /></div><div class='right'><p class='title'><?php echo $game->game_title ?></p>
									<?php if (isset($cate->cat_name)) echo '<p>Thể loại: <span>'.$cate->cat_name.'</span></p>'; ?>
									<p>Lượt chơi: <?php echo $game->game_view; ?></p>
								<p><?php echo $game->game_content; ?></p></div></div></div>
							</div>
								<img width="72" height="60" src="<?php echo image_thumbnail($game->game_thumb,'thumbnail');?>" class="attachment-72x60 wp-post-image" alt="<?php echo $game->seo_title;?>" />
								<span><?php echo $game->game_title;?></span>
								<span class="plays"><?php echo $game->game_view;?></span>
							</a>

						</li>
					  <?php } }?>
					</ul>
				</div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
	</div>

	<!-- home-position1 End --> 

	<div class="clear"></div>
</div>

<script type="text/javascript">
	jQuery(document).ready(function() {
		jQuery('#braygames_slider').bjqs({
			animation: 'fade',
			showMarkers: false,
			automatic: true,
			showControls: false,
		});
	});
</script> 
